import unittest

from HTMLTestRunner import HTMLTestRunner
test=unittest.defaultTestLoader.discover(r'E:\BaiduNetdiskDownload\汉科软 实训软件\项目\hkr-thr\当前项目\day7', pattern="test.py")
runner=HTMLTestRunner.HTMLTestRunner(
    stream=open(file='./calc.html', mode='w+', encoding='utf-8'),
    title='计算器测试',#标题
    verbosity=2,#详细程度
    description='计算两位数之间加减乘除的运算'
)
runner.run(test)